home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 334 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.1 KB  |  40 lines

  1. Path: eua.ericsson.se!usenet
  2. From: tobbe@erix.ericsson.se (Torbj|rn T|rnkvist)
  3. Newsgroups: comp.std.c
  4. Subject: A question about: #define
  5. Date: 12 Feb 1996 10:02:11 +0100
  6. Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
  7. Sender: tobbe@chivas.eua.ericsson.se
  8. Message-ID: <qug2cgc3xo.fsf@chivas.eua.ericsson.se>
  9. NNTP-Posting-Host: chivas.eua.ericsson.se
  10. NNTP-Posting-User: tobbe
  11. X-Newsreader: Gnus v5.1
  12.  
  13.  
  14. I'm wondering if the following preprocessor directive is 
  15. permissible in ANSI C ?
  16.  
  17.   #define A #define B
  18.  
  19. I couldn't see from from my Harbison,Steele, "A C Reference Manual", 
  20. if it is ok or not (gcc -ansi -pedantic accept this but the Sun 
  21. ANSI-C compiler does not...).
  22.  
  23. Thanx !
  24.  
  25. /Torbj÷rn , tobbe@erix.ericsson.se
  26. -- 
  27. +-------------------------------------------------+
  28. | Torbj÷rn T÷rnkvist , tel: +46 8 727 39 28       |
  29. | email: tobbe@erix.ericsson.se                   |
  30. | WWW:   http://www.ericsson.se/cslab/erlang      |
  31. | smail: ELLEMTEL , Computer Science Laboratory   |
  32. |        Box 1505 , S-125 25 ─lvsj÷               |
  33. |        SWEDEN                                   |
  34. +-------------------------------------------------+
  35.  
  36.  
  37.  
  38.  
  39.  
  40.